<%--
  Created by IntelliJ IDEA.
  User: Stiofan
  Date: 2017/3/13
  Time: 17:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/common/tags.jsp" %>

<aos:html title="金三房管信息比对分析" base="http" lib="ext">
    <aos:body>
    </aos:body>
</aos:html>
<aos:onready>
    <aos:viewport layout="fit">
        <aos:panel layout="column" columnWidth="1" autoScroll="true">
        <aos:formpanel id="cxbdfxForm" layout="column" columnWidth="1" border="false"
			autoScroll="true">
            <aos:docked dock="top" columnWidth="1" layout="column" border="true"
				height="135">
            <aos:dockeditem text="比对异常查询" margin="0 3" columnWidth="0.1"
					icon="icon71.png" onclick="queryG3FgcjxxbdfxZcByParams" />
			<aos:dockeditem text="比对正常查询" margin="0 3" columnWidth="0.1"
					icon="icon71.png" onclick="queryG3FgcjxxbdfxZcByParams" />
			<aos:panel columnWidth="1" layout="column">	
                <aos:textfield id="nsrsbh" name="nsrsbh" fieldLabel="纳税人识别号" columnWidth="0.25"/>
                <aos:textfield id="nsrmc" name="nsrmc" fieldLabel="纳税人名称" columnWidth="0.25"/>
                <aos:combobox id="zgswjgDm" name="zgswjgDm" fieldLabel="主管税务机关" columnWidth="0.25"
                              url="fgcjxxbdfxService.queryZgswjgDmByHttpModel" onselect="queryZgswskfjDmByZgswjgDm"/>
                <aos:combobox id="zgswskfjDm" name="zgswskfjDm" fieldLabel="主管税务科所" columnWidth="0.25"
                              url="fgcjxxbdfxService.queryZgswskfjDmByZgswjgDm" onselect="querySsglyDmByZgswskfjDm"/>
                <aos:combobox id="ssglyDm" name="ssglyDm" fieldLabel="税收管理员" columnWidth="0.25"
                              url="fgcjxxbdfxService.querySsglyDmByZgswskfjDm"/>
                <aos:textfield id="fczh" name="fczh" fieldLabel="房产证号" columnWidth="0.25"/>
                <aos:textfield id="fcbh" name="fcbh" fieldLabel="房产编号" columnWidth="0.25"/>
                <aos:textfield id="fcmc" name="fcmc" fieldLabel="房产名称" columnWidth="0.25"/>
                <aos:textfield id="tdzdh" name="tdzdh" fieldLabel="土地地号" columnWidth="0.25"/>
                <aos:textfield id="tdbh" name="tdbh" fieldLabel="土地编号" columnWidth="0.25"/>
                <aos:datefield id="fcqdrqq" name="fcqdrqq" fieldLabel="房产取得日期起" columnWidth="0.25"/>
                <aos:datefield id="fcqdrqz" name="fcqdrqz" fieldLabel="房产取得日期止" columnWidth="0.25"/>
                <aos:textfield columnWidth="1" value="因为比对分析过程较慢，请耐心等待!操作界面中不提供数据展示." readOnly="true"/>
            </aos:panel>
            </aos:docked>
            <aos:gridpanel id="g3fgcjxxbdfxGrid" layout="fit" forceFit="true"
				columnWidth="3" autoScroll="true" hidePagebar="true" 
				url="g3FgcjxxbdfxService.queryG3FgcjxxbdfxZcByParams" height="300"
				columnLines="true">
				<aos:column dataIndex="nsrsbh" header="纳税人识别号" width="0.1"
					align="center" />
				<aos:column dataIndex="fcmc" header="房产名称" width="0.1"
					align="center" />
				<aos:column dataIndex="nsrmc" header="产权人（纳税人）" width="0.1"
					align="center" />
				<aos:column dataIndex="jzmj" header="建筑面积（实际）" width="0.1"
					align="center" />
					<aos:column dataIndex="fczyz" header="房产总原值（实际）" width="0.1"
					align="center" />
				<aos:column dataIndex="tdzdh" header="房产所在宗地号（实际）" width="0.1"
					align="center" />
					<aos:column dataIndex="fcqdrq" header="房产取得时间（实际）" width="0.1"
					align="center" />
				<aos:column dataIndex="fczh" header="产权证书号（实际）" width="0.1"
					align="center" />
				<aos:column dataIndex="jsNsrsbh" header="纳税人识别号（金三）" width="0.1"
					align="center" />
					<aos:column dataIndex="jsFcmc" header="房产名称（金三）" width="0.1"
					align="center" />
				<aos:column dataIndex="jsNsrmc" header="产权人（纳税人）（金三）" width="0.1"
					align="center" />
				<aos:column dataIndex="jsJzmj" header="建筑面积（金三）" width="0.1"
					align="center" />
					<aos:column dataIndex="jsFczyz" header="房产总原值（金三）" width="0.1"
					align="center" />
				<aos:column dataIndex="jsTdzdh" header="房产所在宗地号（金三）" width="0.1"
					align="center" />
					<aos:column dataIndex="jsFcqdrq" header="房产取得时间（金三）" width="0.1"
					align="center" />
				<aos:column dataIndex="jsFczh" header="产权证书号（金三）" width="0.1"
					align="center" />
				<aos:column dataIndex="fxjg" header="是否异常" width="0.1"
					align="center" />
			</aos:gridpanel>
            </aos:formpanel>
            <aos:docked dock="bottom" ui="footer" columnWidth="1" layout="column" border="false">
                <aos:panel layout="column" columnWidth="1" border="false">
                    <aos:panel layout="column" columnWidth="0.25" center="true" animate="false" border="false">
                        <aos:button text="比对" columnWidth="0.5" margin="2" onclick="exportG3Fgcjxxbdfxjg"/>
                        <aos:button text="重置" columnWidth="0.5" margin="2" onclick=""/>
                    </aos:panel>
                </aos:panel>
            </aos:docked>
        </aos:panel>
    </aos:viewport>
    <script type="text/javascript">
        function queryZgswskfjDmByZgswjgDm() {
            var params = {
                zgswjgDm: Ext.getCmp("zgswjgDm").getValue()
            };
            zgswskfjDm_store.getProxy().extraParams = params;
            zgswskfjDm_store.reload();
        }
        function querySsglyDmByZgswskfjDm() {
            var params = {
                zgswskfjDm: Ext.getCmp("zgswskfjDm").getValue()
            };
            ssglyDm_store.getProxy().extraParams = params;
            ssglyDm_store.reload();
        }
        function queryG3FgcjxxbdfxYcByParams() {
        	g3fgcjxxbdfxGrid_store.getProxy().url='do.jhtml?router=g3FgcjxxbdfxService.queryG3FgcjxxbdfxYcByParams&juid=${juid}';
        	g3fgcjxxbdfxGrid_store.getProxy().extraParams = Ext.getCmp
            ("cxbdfxForm").getValues();
        	g3fgcjxxbdfxGrid_store.reload();
            }
        function queryG3FgcjxxbdfxZcByParams() {
        	g3fgcjxxbdfxGrid_store.getProxy().url='do.jhtml?router=g3FgcjxxbdfxService.queryG3FgcjxxbdfxZcByParams&juid=${juid}';
        	g3fgcjxxbdfxGrid_store.getProxy().extraParams = Ext.getCmp
            ("cxbdfxForm").getValues();
        	g3fgcjxxbdfxGrid_store.reload();
            }
        
        function exportG3Fgcjxxbdfxjg() {
            AOS.ajax({
                forms: cxbdfxForm,
                url: "g3FgcjxxbdfxService.exportG3Fgcjxxbdfxjg",
                ok: function (data) {
                    if (data.appcode === "suc") {
                    	// window.location.href = "/gszw-ydksxt/" + data.downloadUrl;
						window.location.href = "/" + data.downloadUrl;
                    } else {
                        AOS.err(data.appmsg);
                    }
                }
            });
            
        }
    </script>
</aos:onready>
